﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WooCoo.Tools;

namespace WooCoo.DataPortal.Client
{
    public abstract class OperationParameter
    {
        private string parameterName;
        private object parameterValue;
        public string Name
        {
            get
            {
                return this.parameterName;
            }
        }
        public object Value
        {
            get
            {
                return this.parameterValue;
            }
        }
        protected OperationParameter(string name, object value)
        {
            //Check.CheckArgumentNotEmpty
            if (string.IsNullOrEmpty(name))
            {
                Error.Argument(StringID.MissingOperationParameterName.ToLocalString(),name);
            }
            this.parameterName = name;
            this.parameterValue = value;
        }
    }
}
